﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YnPlcDataServer.Entities
{
    /// <summary>数据断面存储规则表,满足条件则存储，避免过多存储无效数据</summary>
    public class YnSectionRule
    {
        /// <summary>规则id</summary>
        public int rule_id { get; set; }
        /// <summary>采集器id</summary>
        public int daq_id { get; set; }
        /// <summary>采集器id</summary>
        public int svid_id { get; set; }
        /// <summary>是否启用</summary>
        public bool enabled { get; set; }
        /// <summary>规则类型(1:范围,2:触发)</summary>
        public int type { get; set; }
        /// <summary>条件上限</summary>
        public decimal condition_upper_limit { get; set; }
        /// <summary>条件下限</summary>
        public decimal condition_lower_limit { get; set; }
        /// <summary>触发比较符号（0：增加，1：减少,3:全部）</summary>
        public int trigger_symbol { get; set; }
        /// <summary>触发范围</summary>
        public decimal trigger_changed { get; set; }

    }
}
